home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / ccs_util.jar / test / ui / UITestResult.class (.txt) < prev   
Encoding:
Java Class File  |  1999-12-09  |  1.1 KB  |  28 lines

  1. package test.ui;
  2.  
  3. import test.framework.Test;
  4. import test.framework.TestResult;
  5.  
  6. public class UITestResult extends TestResult {
  7.    private TestRunner fRunner;
  8.  
  9.    UITestResult(TestRunner runner) {
  10.       this.fRunner = runner;
  11.    }
  12.  
  13.    public synchronized void addError(Test test, Throwable t) {
  14.       super.addError(test, t);
  15.       this.fRunner.addError(this, test, t);
  16.    }
  17.  
  18.    public synchronized void addFailure(Test test, Throwable t) {
  19.       super.addFailure(test, t);
  20.       this.fRunner.addFailure(this, test, t);
  21.    }
  22.  
  23.    public synchronized void endTest(Test test) {
  24.       super.endTest(test);
  25.       this.fRunner.endTest(this, test);
  26.    }
  27. }
  28.